﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 租车
{
  public abstract class Vehicle
    {
        public string Color { get; set; }
        public int Type { get; set; }
        public double DailyRent { get; set; }
        public string LicenseNo { get; set; }
        public string SName { get; set; }
        public int RentDate { get; set; }
        public string RentUser { get; set; }
        public int YearsofService { get; set; }
        public Vehicle(string col,double dr,string ln,string nam,int ys)
        {
            Color = col;
            DailyRent = dr;
            LicenseNo = ln;
            SName = nam;
            RentDate = 0;
            RentUser = "";
            YearsofService = ys;
        }
        public abstract double cal(int d,int l);
        public abstract int getload();
    }
}
